package indi.henry.demo.service;

import indi.henry.demo.model.Counter;

/**
 * Counter service interface
 * 
 * @author Henry Hu
 */
public interface CounterService {

    /**
     * Get the current counter info by original URL
     * 
     * @param url which is the original one
     * @return the counter info
     */
    public Counter getCurrentByOrigin(String url);

    /**
     * Add one new updated record for counterGet
     * 
     * @param id for corresponding item
     * @return the updated counter info
     */
    public Counter addGet(String id);

    /**
     * Add one new updated record for counterSet
     * 
     * @param id for corresponding item
     * @return the updated counter info
     */
    public Counter addSet(String id);
}
